package main;

import functii_elementare.*;
import functii_trigonometrice.Cos;
import functii_trigonometrice.Sin;
import arbore.*;
import operator.*;

public class Main {
	public static void main(String arg[])
	{
		Nod n=new Necunoscuta();
		Nod n2=new Necunoscuta();
		
		Nod ct2=new Constanta(3);
		Nod ct=new Constanta(4);
		Nod ct3=new Constanta(2);
		
		Nod plus=new Plus();
		Nod plus2=new Plus();
		Nod minus=new Minus();
		Nod produs=new Produs();
		Nod produs2=new Produs();
		Nod cat=new Cat();
		Nod putere=new Putere();
		Nod sin=new Sin();
		Nod cos=new Cos();
		Nod log=new Logaritm();
		Nod rad=new Radical();
		
		
		plus.setfStang(putere);
		plus.setfDrept(plus2);
		putere.setfDrept(ct2);
		putere.setfStang(n);
		plus2.setfDrept(produs);
		plus2.setfStang(ct);
		produs.setfStang(n2);
		produs.setfDrept(ct3);
		
		//rad.setfDrept(null);
		//rad.setfStang(n);
		//produs.setfStang(ct2);
		ArboreFunctional a=new ArboreFunctional(plus);
		System.out.println(a.toString());

	}
}
